package com.lizhi.note.service;

import com.lizhi.note.dto.NotebookLastVisitDTO;

import java.util.Optional;

public interface NotebookLastVisitService {
    NotebookLastVisitDTO save(NotebookLastVisitDTO dto);
    Optional<NotebookLastVisitDTO> findByNotebookIdAndUserId(Long notebookId, Long userId);
    void delete(Long id);

    NotebookLastVisitDTO findByUserId(Long userId);

    void addLastVisitRecord(Long notebookId, Long userId);
}
